﻿Imports System.Runtime.InteropServices
Public Class NativeMethods
    <DllImport("user32.dll")> _
    Public Shared Function WindowFromPoint(ByVal Point As Point) As IntPtr
    End Function
    <DllImport("user32.dll")> _
    Public Shared Function GetWindowRect(ByVal hWnd As IntPtr, ByRef lpRect As RECT) As Boolean
    End Function

    <StructLayout(LayoutKind.Sequential)> _
    Public Structure RECT
        Public Left As Integer
        Public Top As Integer
        Public Right As Integer
        Public Bottom As Integer
    End Structure
    <DllImport("user32.dll")> _
    Public Shared Function GetCapture() As IntPtr
    End Function
End Class
